package com.yingxue.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.time.Duration;

/**
 * @Package: com.company.scaffold.config
 * @Author: Mr.Waves
 * @Date: 2020-03-11 15:07
 * @Description:
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JWTSettings {
    private String secretKey;
    private Duration accessTokenExpireTime;
    private Duration refreshTokenPCExpireTime;
    private Duration refreshTokenAppExpireTime;
    private String issuer;
}
